package com.ruoyi.source.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.source.api.domain.SrcCropInfo;
import com.ruoyi.system.api.domain.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 农作物信息Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-22
 */
public interface SrcCropInfoMapper extends BaseMapper<SrcCropInfo> {

    /**
     * 查询农作物信息列表
     *
     * @return 农作物信息集合
     */
    public List<SrcCropInfo> selectSrcCropInfoList(IPage<SrcCropInfo> iPage,@Param("cropName") String cropName,@Param("cropType") Long cropType,@Param("plantingWay")Long plantingWay,@Param("plantingYear") String plantingYear);


    List<Map<String, Object>> selectCropTypeCount();

    List<SysDept> deptList();

    void getbyids(@Param("goodsId") Long goodsId,@Param("goodsNum") Long goodsNum);

    List<Map<String, Object>> getGoodsList();
}
